package top.longmarch.flow.test;

import cn.hutool.json.JSONObject;
import com.yomahub.liteflow.annotation.LiteflowComponent;
import com.yomahub.liteflow.core.NodeComponent;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@LiteflowComponent(id = "DCmp", name = "DCmp")
public class DCmp extends NodeComponent {
    @Override
    public void process() throws Exception {
        log.info("DCmp executed!");
        JSONObject context = this.getContextBean(JSONObject.class);
        context.set("cmp", "x < y");
    }

}
